package com.thread.block.sleep;

public class Sleep extends Thread{
	@Override
	public void run() {
		int x = 10;
		while (x > 0) {
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			System.out.println(x--);
		}
	}
}
